package com.leonse.stock.service.impl;

import com.leonse.stock.mapper.StockMapper;
import com.leonse.stock.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author leonse
 * @date 2023/12/28 20:13
 **/
@Service
public class StockServiceImpl implements StockService {

    @Autowired
    private StockMapper stockMapper;

    @Override
    public void deduction(Integer productId) {
        stockMapper.stockDesc(productId);
    }

}
